Skip to content

Conversation

@cwmeijer
Copy link
Collaborator

@cwmeijer cwmeijer commented Sep 1, 2025

ANN101 and ANN102 have been removed and referencing them in the config causes warnings to be printed when ruff is run.

See also WUR-AI/diffWOFOST#12 (comment)

Checklist before requesting a review

  • I have read the contribution guidelines
  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • All user facing changes have been added to CHANGELOG.md

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

List of related issues or pull requests**

Refs:

  • #ISSUE_NUMBER_1
  • #ISSUE_NUMBER_2

Describe the changes made in this pull request

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Instructions to review the pull request

Install the requirements

cd $(mktemp -d --tmpdir py-tmpl-XXXXXX)
pip install pipx
pipx install copier

Create a new package using the template

copier copy --vcs-ref <YOUR_BRANCH> https://github.com/nlesc/python-template test_package

Create a local git repo to push to GitHub to trigger CI actions

git init
git add --all
git commit -m "First commit"
git remote add origin [email protected]:<YOU>/python-template-test.git
git push -u origin main -f
# Create a local environment to test your generated package locally
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip setuptools
python -m pip install '.[dev,publishing]'

[ANN101](https://docs.astral.sh/ruff/rules/missing-type-self/) and [ANN102](https://docs.astral.sh/ruff/rules/missing-type-cls/) have been removed and referencing them in the config causes warnings to be printed when ruff is run.

See also WUR-AI/diffWOFOST#12 (comment)
@cwmeijer cwmeijer marked this pull request as draft September 1, 2025 09:44
@cwmeijer cwmeijer marked this pull request as ready for review September 2, 2025 07:32
@cwmeijer cwmeijer merged commit f360637 into main Sep 2, 2025
18 checks passed
@cwmeijer cwmeijer deleted the remove-deprecated-linting-rules branch September 2, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants